import axios from "./index";
import type { Ref } from "vue";
//获取热门商品
export function getHotWord() {
  return axios.get("/pro/hotword");
}
//搜索列表
// export function getSearch(data: getsearch) {
//   return axios.get("/pro/search", data);
// }
export function getSearch(count: any, limitNum: any, keyword: any) {
  return axios.get("/pro/search", { params: { count, limitNum, keyword } });
}
//搜索详情
export function getSelDel(count: Ref<any>, keyword: Ref<any>) {
  return axios.get(`/pro/search?count=${count}&keyword=${keyword}`);
}
